<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>coolMeeting</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/styles/common.css"/>
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
    </head>
    <body>
    <#--    导航栏-->
    <#include 'top.ftl'>
        <div class="page-body">
            <#--            左侧导航栏-->
            <#include 'leftMenu.ftl'>
            <div class="page-content">
                <div class="content-nav">
                    会议预定 > 搜索会议
                </div>
                <form action="/searchMeetingsbyPage">
                    <fieldset>
                        <legend>搜索会议</legend>
                        <table class="formtable">
                            <tr>
                                <td>会议名称：</td>
                                <td>
                                    <input name="meetingname" type="text" id="meetingname" maxlength="20"/>
                                </td>
                                <td>会议室ID：</td>
                                <td>
                                    <input name="roomid" type="text" id="roomname" maxlength="20"/>
                                </td>
                                <td>预定者姓名：</td>
                                <td>
                                    <input name="reservername" type="text" id="reservername" maxlength="20"/>
                                </td>
                            </tr>
<#--                            <tr>-->
<#--                                <td>预定日期：</td>-->
<#--                                <td colspan="5">-->
<#--                                    从&nbsp;<input type="date" id="reservefromdate" placeholder="例如：2013-10-20"/>-->
<#--                                    到&nbsp;<input type="date" id="reservetodate" placeholder="例如：2013-10-22"/>-->
<#--                                </td>-->
<#--                            </tr>-->
<#--                            <tr>-->
<#--                                <td>会议日期：</td>-->
<#--                                <td colspan="5">-->
<#--                                    从&nbsp;<input type="date" id="meetingfromdate" placeholder="例如：2013-10-20"/>-->
<#--                                    到&nbsp;<input type="date" id="meetingtodate" placeholder="例如：2013-10-22"/>-->
<#--                                </td>-->
<#--                            </tr>-->
                            <tr>
                                <td colspan="6" class="command">
                                    <input type="submit" class="clickbutton" value="查询"/>
                                    <input type="reset" class="clickbutton" value="重置"/>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <input type="hidden" value="0" name="start">
                </form>
                <div>
                    <h3 style="text-align:center;color:black">查询结果</h3>
                    <div class="pager-header">
                        <div class="header-info">
                            共<span class="info-number">${mtps.recordCount}</span>条结果，
                            分成<span class="info-number">${mtps.pageCount}</span>页显示，
                            当前第<span class="info-number">${pagenumber}</span>页
                        </div>
                        <div class="header-nav">
                            <button onclick="javascript:window.location.href='searchMeetingsbyPage?start=0&meetingname=${meetingname}&roomid=${roomid}&reservername=${reservername}';" class="clickbutton">首页</button>
                            <button onclick="javascript:window.location.href='searchMeetingsbyPage?start=${mtps.previousStart}&meetingname=${meetingname}&roomid=${roomid}&reservername=${reservername}';">上一页</button>
                            <button onclick="javascript:window.location.href='searchMeetingsbyPage?start=${mtps.nextStart}&meetingname=${meetingname}&roomid=${roomid}&reservername=${reservername}';">下一页</button>
                            <button onclick="javascript:window.location.href='searchMeetingsbyPage?start=${mtps.pageLastStart}&meetingname=${meetingname}&roomid=${roomid}&reservername=${reservername}';">末页</button>
                        </div>
                    </div>
                </div>
                <table class="listtable">
                    <tr class="listheader">
                        <th>会议名称</th>
                        <th>会议室ID</th>
                        <th>会议开始时间</th>
                        <th>会议结束时间</th>
                        <th>会议预定时间</th>
                        <th>预定者</th>
                        <th>操作</th>
                    </tr>
                    <#if mtps??>
                        <#list mtps.list as meeting>
                            <tr>
                                <td>${meeting.meetingname}</td>
                                <td>${meeting.roomid}</td>
                                <td>${meeting.starttime?string('yyyy:MM:dd HH:mm:ss')}</td>
                                <td>${meeting.endtime?string('yyyy:MM:dd HH:mm:ss')}</td>
                                <td>${meeting.reservationtime?string('yyyy:MM:dd HH:mm:ss')}</td>
                                <td>${meeting.reservername}</td>
                                <td>
                                    <a class="clickbutton" href="/meetingdetails?meetingid=${meeting.meetingid}">查看详情</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>
<#--                    <td>业务洽谈会</td>-->
<#--                    <td>第一会议室</td>-->
<#--                    <td>2013-10-12 8:00</td>-->
<#--                    <td>2013-10-12 12:00</td>-->
<#--                    <td>2013-10-10 16:00</td>-->
<#--                    <td>Jerry</td>-->
<#--                    <td>-->
<#--                        <a class="clickbutton" href="meetingdetails.ftl">查看详情</a>-->
<#--                    </td>-->



                </table>
            </div>
        </div>
        <div class="page-footer">
            <hr/>
            更多问题，欢迎联系<a href="mailto:webmaster@eeg.com">管理员</a>
            <img src="/images/footer.png" alt="CoolMeeting"/>
        </div>
    </body>
</html>